<?php
namespace app\admin\validate;

use think\Validate;

class SystemValidate extends Validate
{
    protected $rule =   [
        'id'                         => 'require|number',
        'appid|AppId'                => 'require|length:1,255',
        'appsecret|AppSecret'        => 'require|length:1,255',
        'mch_id|商户号'               => 'require|length:1,255',
        'api_key|支付秘钥'            => 'require|length:1,255',
        'cust_phone|客服电话'         => 'require|length:1,255',
        'cash_day|提现日期'           => 'require|gt:0',
        'cash_number|提现限额'        => 'require',
        'fst_rate|一级分销'           => 'require',
        'sec_rate|二级分销'           => 'require',
    ];
    
    protected $scene = [
        'edit' => ['cust_phone', 'cash_day', 'cash_number'],
    ];
}